
#include "CMachine.h"
#include "CStateOFF.h"


CMachine::CMachine()
{
	itsActualState = new CStateOFF();
}


CMachine::~CMachine()
{
}


void CMachine::on()
{
	itsActualState->on(this);
}


void CMachine::off()
{
	itsActualState->off(this);
}


void CMachine::setActualState(CState *aNewState)
{
	itsActualState = aNewState;
}

